package com.project.bean;

import java.time.LocalDate;

/**
 * 学生实体类
 */
public class StudentBean {
    /**编号*/
    private int id;
    /**学生姓名*/
    private String name;
    /**性别*/
    private String sex;
    /**班级*/
    private ClassRoomBean classroom;
    /**房间*/
    private RoomBean room;
    /**电话*/
    private String tel;
    /**入住时间*/
    private LocalDate inDate = LocalDate.now();
    /**头像路径*/
    private String faceImage;

    public StudentBean() {
    }

    public StudentBean(String name, String sex, int classroom, int address, String tel, LocalDate inDate,String faceImage) {
        this.name = name;
        this.sex = sex;
        this.classroom = new ClassRoomBean();
        this.classroom.setId(classroom);
        this.room = new RoomBean();
        this.room.setId(address);
        this.tel = tel;
        this.inDate=inDate;
        this.faceImage = faceImage;
    }

    public String getFaceImage() {
        return faceImage;
    }

    public void setFaceImage(String faceImage) {
        this.faceImage = faceImage;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public ClassRoomBean getClassroom() {
        return classroom;
    }

    public void setClassroom(ClassRoomBean classroom) {
        this.classroom = classroom;
    }

    public RoomBean getRoom() {
        return room;
    }

    public void setRoom(RoomBean room) {
        this.room = room;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public LocalDate getInDate() {
        return inDate;
    }

    public void setInDate(LocalDate inDate) {
        this.inDate = inDate;
    }

    @Override
    public String toString() {
        return "StudnetBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", classroom='" + classroom + '\'' +
                ", room='" + room + '\'' +
                ", tel=" + tel +
                ", inDate=" + inDate +
                '}' + "\n";
    }
}
